<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Authentication Defaults 身份验证默认值
    |--------------------------------------------------------------------------
    |
    | This option controls the default authentication "guard" and password
    | reset options for your application. You may change these defaults
    | as required, but they're a perfect start for most applications.
    |
    */

    'defaults' => [
        'guard' => env('AUTH_GUARD', 'api'),
    ],

    /*
    |--------------------------------------------------------------------------
    | Authentication Guards 身份验证保护
    |--------------------------------------------------------------------------
    |
    | Next, you may define every authentication guard for your application.
    | Of course, a great default configuration has been defined for you
    | here which uses session storage and the Eloquent user provider.
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | Supported: "token"
    |
    */

    'guards' => [
        //'api' => ['driver' => 'api'],
        'api' => ['driver' => 'jwt', 'provider' => 'users'],
    ],

    /*
    |--------------------------------------------------------------------------
    | User Providers用户提供程序
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    所有身份验证驱动程序都有一个用户提供程序。这定义了如何从数据库或此应用程序用来保存用户数据的其他存储机制中实际检索用户。
    |
    | If you have multiple user tables or models you may configure multiple
    | sources which represent each model / table. These sources may then
    | be assigned to any extra authentication guards you have defined.
    如果有多个用户表或模型，则可以配置多个表示每个模型/表的源。然后，可以将这些源分配给您定义的任何额外的身份验证保护。
    |
    | Supported: "database", "eloquent"
    |
    */


    /*
    |--------------------------------------------------------------------------
    | Resetting Passwords 重置密码
    |--------------------------------------------------------------------------
    |
    | Here you may set the options for resetting passwords including the view
    | that is your password reset e-mail. You may also set the name of the
    | table that maintains all of the reset tokens for your application.
    在这里，您可以设置重置密码的选项，包括密码重置电子邮件的视图。您还可以设置维护应用程序所有重置令牌的表的名称。
    |
    | You may specify multiple password reset configurations if you have more
    | than one user table or model in the application and you want to have
    | separate password reset settings based on the specific user types.
    如果应用程序中有多个用户表或模型，并且希望根据特定的用户类型进行单独的密码重置设置，则可以指定多个密码重置配置。
    |
    | The expire time is the number of minutes that the reset token should be
    | considered valid. This security feature keeps tokens short-lived so
    | they have less time to be guessed. You may change this as needed.
    expire time是应将重置令牌视为有效的分钟数。此安全功能使令牌保持短暂的生命周期，因此它们被猜测的时间更少。你可以根据需要改变这个。
    |
    */

    'passwords' => [
        //
    ],

];
